<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>hello Vue</title>
</head>
<body>
<div id="app">
    <!--直接编译输出了-->
    <h1>{{urlStr}}</h1>
    <!--v-html指令，会把数据当初HTML来输出-->
    <h1 v-html="urlStr"></h1>
</div>
</body>
<script src="../../css/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            urlStr: '<a href="https://www.baidu.com/">百度一下</a> 你好'
        }
    });
</script>
</html>
